import { Module } from '@nestjs/common';
import { ConfigModule } from '@nestjs/config';
import { TypeOrmModule } from '@nestjs/typeorm';
import { AttachmentsController } from './controllers/attachments.controller';
import { ObsService } from './services/obs.service';
import { AttachmentsService } from './services/attachments.service';
import { Attachment } from '../contents/entities/attachment.entity';

@Module({
  imports: [ConfigModule, TypeOrmModule.forFeature([Attachment])],
  controllers: [AttachmentsController],
  providers: [ObsService, AttachmentsService],
  exports: [ObsService, AttachmentsService],
})
export class AttachmentsModule {}
